package com.inifitness.common.enums;

import com.inifitness.common.basic.BaseEnum;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 数据权限枚举
 *
 * @author sunjinfeng
 * @version 1.0.0
 * @since 2024/04/18 11:00:00
 */
@Getter
@AllArgsConstructor
public enum DataScopeEnum implements BaseEnum<Integer> {
  /**
   * value 越小，数据权限范围越大
   */
  ALL(0, "所有数据"),
  DEPT_AND_SUB(1, "部门及子部门数据"),
  DEPT(2, "本部门数据"),
  SELF(3, "本人数据");

  private final Integer value;

  private final String label;
}
